package com.brs.model;

import java.text.SimpleDateFormat;
import java.util.Date;

public abstract class Book {
	private String ISBN;
	private String title;
	private String catagory;
	private String author;
	private String publisher;
	private Date publicationDate;
	private int pages;
	private float price;

	public String getISBN() {
		return ISBN;
	}

	public void setISBN(String iSBN) {
		ISBN = iSBN;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getCatagory() {
		return catagory;
	}

	public void setCatagory(String catagory) {
		this.catagory = catagory;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public Date getPublicationDate() {
		return publicationDate;
	}

	public void setPublicationDate(Date publicationDate) {
		this.publicationDate = publicationDate;
	}

	public int getPages() {
		return pages;
	}

	public void setPages(int pages) {
		this.pages = pages;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	@Override
	public String toString() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		return ", ISBN=" + ISBN + ", title=" + title + ", catagory=" + catagory + ", author=" + author + ", publisher="
				+ publisher + ", publicationDate=" + sdf.format(publicationDate) + ", pages=" + pages + ", price="
				+ price + "]";
	}

}
